<#cenluan title="${vote.title}" menu="vote" validate="true">
	<style>
		.progress-bar-1{background-color: #5cb85c; }
		.progress-bar-2{background-color: #5bc0de; }
		.progress-bar-3{background-color: #f0ad4e; }
		.progress-bar-4{background-color: #d9534f; }
		.progress-bar-5{background-color: #5cb85c; }
		.progress-bar-6{background-color: #5bc0de; }
		.progress-bar-7{background-color: #f0ad4e; }
		.progress-bar-8{background-color: #d9534f; }
		.progress-bar-9{background-color: #5cb85c; }
		.progress-bar-10{background-color: #5bc0de; }
	</style>
	<ol class="breadcrumb">
		<li><a href="/vote">投票</a></li>
		<li class="active">查看详情</li>
	</ol>
	<div class="row">
		<div class="col-sm-8">
			<div class="media">
				<!--@include("/vote/div.html",{vote:vote}){}-->
			</div>
		</div>
		<div class="col-sm-4">
			<!-- TODO -->
		</div>
	</div>
	<script>
		
		$(function() {
			$("form").validate({
				errorPlacement : function() {
				},
				submitHandler : function(form) {
					$(form).find(":submit").button("loading");
					$(form).ajaxSubmit(function(json) {
						if (json.ok) {
							location.reload();
						} else {
							alert(json.msg);
							$(form).find(":submit").button("reset");
						}
					});
				}
			});
		});
		function del(){
			if(!confirm("确定要删除这个投票吗？")){
				return;
			}
			$.getJSON("/vote/delete/${vote.id}",function(json){
				if(json.ok){
					location="/vote";
				}
			});
		}
	</script>
</#cenluan>